import { useContext } from 'react';
import { AudioChatContext } from '@/components/AudioChatProvider/context';

export const useAudioChatState = () => {
  const {
    botSpeaking,
    setBotSpeaking,
    userSpeaking,
    setUserSpeaking,
    wsConnected,
    setWsConnected,
    botAudioPlaying,
    setBotAudioPlaying,
  } = useContext(AudioChatContext);
  return {
    botSpeaking,
    setBotSpeaking,
    userSpeaking,
    setUserSpeaking,
    wsConnected,
    setWsConnected,
    botAudioPlaying,
    setBotAudioPlaying,
  };
};
